'Ken Carlisle at HHMI
'%PROGRAMFILES%/LANDesk/Shared Files/cbaroot/broker/brokerconf.xml. 
'The Order key is the one that needs changing
'1 == "Connect using the Management Gateway"
'2 == "Connect directly to LDMS core"
'0 == "Dynamically determine connection route"

Const ForReading = 1
Const ForWriting = 2

Set objFSO = CreateObject("Scripting.FileSystemObject")
Set objFile = objFSO.OpenTextFile("C:\Program Files\LANDESK\Shared Files\cbaroot\broker\broker.conf.xml", ForReading)

strText = objFile.ReadAll
objFile.Close
strNewText = Replace(strText, "<order>1", "<order>0")

Set objFile = objFSO.OpenTextFile("C:\Program Files\LANDESK\Shared Files\cbaroot\broker\broker.conf.xml", ForWriting)
objFile.WriteLine strNewText
objFile.Close

